<script>  
</script>



<table class="full">
			<thead>
				<tr>
					<th width="50%">Article</th>
					<th>User</th>
					<th>Event</th>
					<th>Status</th>
					<th>Controls</th>
				</tr>

			</thead>
			<tfoot>
				<tr>
					<td colspan="5">
					
					
						
						<%= will_paginate(@articles, :renderer => "PaginationListLinkRenderer") %>
			
					
		
					<!-- End .pagination -->
					<div class="clear">
					</div>
					</td>
				</tr>
			</tfoot>

			<tbody class="tooltip-enabled">
				<% @articles.each do |article| %>
				<tr>
		
					<td>
					  <h5><%= article.title %></h5>						
					</td>
					<td>
						<%= link_to article.user.username, "#", "original-title" => article.user.username if !article.user.nil? %>
					</td>
					<td>
						<%= link_to article.event.title, article.event, "original-title" => 'View' if !article.event.nil? %>
					</td>
					<td>
						<%= article.article_status.nil? ? 'no status' : article.article_status.title %>
					</td>
					
					<td>
						<%= link_to image_tag("icons/details.png",
												:border=>0),
												"#modal-window",
												:class => "preview-but",
												"original-title" => 'Preview',
												:onclick => "previewArticle('#{url_for({:controller => 'articles',:action => 'preview_article', :id => article.id})}')" %>
												
						<% if article.reporter_approving? %>

								<%= link_to image_tag("icons/approve.png",
												:border=>0),
												url_for({:action => 'approve', :id => article.id})+"#approve",
												"original-title" => 'Approve this Article' %>

						<% end %>										
						
					</td>
				</tr>
				<% end %>
			</tbody>
		</table>

